# 列表生成式
l1 = [i for i in range(5)]
print(l1)

l2 = [i + 10 for i in range(5)]
print(l2)

# 字典生成式
d1 = {key: value for key, value in enumerate(l1)}
print(d1)

d2 = {key: value for key, value in enumerate(d1)}
print(d2)
# 集合生成式
set1 = {i for i in l1}
print(set1)
# 没有元组生成式

